package com.example.emos.api.controller.form;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NonNull;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author ：Supyo
 * @date ：Created in 2021/11/14 6:02
 * @description：
 */
@Schema(description = "添加考核表单")
@Data
public class InsertExamForm {
    @NotEmpty(message = "名称不能为空")
    private String title;
    /**
     * 开始时间
     */
    @NotEmpty(message = "开始时间不能为空")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private String start_time;
    /**
     * 结束时间
     */
    @NotEmpty(message = "结束时间不能为空")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private String end_time;
    /**
     * 被考核对象
     */
    @NotNull(message = "被考核对象不能为空")
    private Object person;
    /**
     * 考核模板id
     */
    @NotNull(message = "考核模板不能为空")
    private Integer examTemplateId;
    /**
     * 评分人员
     */
    @NotNull(message = "评分人不能为空")
    private Object scorer;
    /**
     * 权重
     */
    @NotEmpty(message = "权重不能为空")
    private Integer weight[];
}
